1
00:00:00,210 --> 00:00:00,940
Hi, everyone.

2
00:00:01,440 --> 00:00:08,970
As we all know that we have done with a fine come on now it's time to see modifying files and directories.

3
00:00:09,300 --> 00:00:16,640
So when you have found your file and directories now, you'll want to be able to perform Xs on them.

4
00:00:17,100 --> 00:00:24,390
So in upcoming lectures, we look at how to create files and directories, copy files, rhenium files

5
00:00:24,390 --> 00:00:26,170
and delete files and directories.

6
00:00:26,640 --> 00:00:29,900
So first of all, we are going to learn about creating files.

7
00:00:29,900 --> 00:00:32,460
So there are many ways to create file.

8
00:00:32,460 --> 00:00:36,920
Ingenix, but for now we will just look at two simple matter.

9
00:00:37,290 --> 00:00:41,450
The first one this guy got does nothing but concatenated.

10
00:00:41,790 --> 00:00:49,950
So the meaning of concatenation is just to combine pieces together so that Katka Mind is generally used

11
00:00:49,950 --> 00:00:52,290
for displaying the contents of a file.

12
00:00:52,680 --> 00:00:56,330
But it can also be used to create small files.

13
00:00:56,670 --> 00:01:04,770
So for creating bigger files, it is better to enter the code in a text editor such as Vem Lilypad or

14
00:01:04,770 --> 00:01:07,760
we are having so many, uh, textual data.

15
00:01:08,010 --> 00:01:14,760
So most popular ones are them Alperin leanings and simply save the file.

16
00:01:15,210 --> 00:01:17,120
Sunaj start with the one.

17
00:01:17,130 --> 00:01:22,920
So the concatenation with regard to what does it mean to the cat, go on followed by the filing will

18
00:01:22,930 --> 00:01:25,320
display the contents of the file.

19
00:01:26,190 --> 00:01:31,470
But to create the file, we follow the cat goman with a redirect.

20
00:01:32,010 --> 00:01:39,270
The North that the symbol like OK, God, and this is the closing angle of bracket, this is the redirect

21
00:01:39,480 --> 00:01:42,200
and the name of the file we want to create.

22
00:01:42,480 --> 00:01:45,030
So I want to create hogging file.

23
00:01:47,250 --> 00:01:53,450
Not hacking or hacking is very familiar names, so I'm going to give it hacking.

24
00:01:54,060 --> 00:01:56,670
So after this, when you enter.

25
00:01:58,190 --> 00:01:58,700
OK.

26
00:02:01,660 --> 00:02:09,400
So when you enter, this will go into intractable mode and wait for you to start entering the content

27
00:02:09,400 --> 00:02:14,250
of the file so this can be puzzling because the promotion disappears.

28
00:02:14,260 --> 00:02:18,980
But if you simply begin typing, whatever you enter will go into the file.

29
00:02:19,390 --> 00:02:21,100
Suppose I'm entering here.

30
00:02:21,370 --> 00:02:22,180
Hacking.

31
00:02:23,920 --> 00:02:29,410
As the most demanding a girl.

32
00:02:31,540 --> 00:02:32,400
Of the.

33
00:02:33,640 --> 00:02:43,120
21ST century and what I need to do is to exit and to return, to promote what I need to do is simply

34
00:02:43,120 --> 00:02:48,050
control be now and OK.

35
00:02:50,880 --> 00:02:56,850
OK, so now if you want to see the content of the file, what they need to do is gag.

36
00:02:57,760 --> 00:03:05,320
Hockey filename and so of dating entry, as you can see, that we are done with the adding text into

37
00:03:05,320 --> 00:03:09,680
the file, which is hacking is the most demanding skill of 21st century.

38
00:03:10,240 --> 00:03:16,090
So if you do not use the redact symbol, salinity's will spit back the content of your file.

39
00:03:16,660 --> 00:03:24,280
So to add or append more content to a file, you can use the get go on with the drop a double redirect

40
00:03:24,580 --> 00:03:25,000
devilry.

41
00:03:25,000 --> 00:03:31,040
That means gagged, testable, redacted, and the filing which is hacking and enter.

42
00:03:31,420 --> 00:03:38,200
So after this, everyone of lone.

43
00:03:39,780 --> 00:03:43,690
Hocking sword alone hocking.

44
00:03:43,860 --> 00:03:50,240
OK, so after this, simply what you need to do, it is simply does do this.

45
00:03:50,250 --> 00:03:53,760
And again, if you want to see the content gap hacking.

46
00:03:55,300 --> 00:03:56,380
OK, what?

47
00:03:57,830 --> 00:03:58,150
OK.

48
00:03:58,200 --> 00:04:04,790
Something went wrong, OK, let me do it again now every.

49
00:04:05,810 --> 00:04:10,600
Everyone should learn hiking, OK?

50
00:04:12,300 --> 00:04:13,320
Is this clear?

51
00:04:14,710 --> 00:04:15,130
Now.

52
00:04:16,150 --> 00:04:19,050
Let's try let's see the content.

53
00:04:20,750 --> 00:04:27,350
Now, as you can see, that we are done with the content, so suppose that, OK, first of all, let's

54
00:04:27,350 --> 00:04:27,980
talk about this.

55
00:04:27,980 --> 00:04:34,910
So we are able to add one more line into a file, which is everyone should learn hacking and hacking

56
00:04:34,910 --> 00:04:36,720
is the most demanding skill of 21st century.

57
00:04:36,980 --> 00:04:45,470
OK, suppose that, guys, if you you want to read the file with the information so you can simply use

58
00:04:45,470 --> 00:04:47,910
the card combined with a single redirect again.

59
00:04:48,260 --> 00:04:49,790
So how you can do that.

60
00:04:50,170 --> 00:04:52,550
OK, so how you can do that.

61
00:04:52,550 --> 00:05:01,420
Simply used that hacking file name to write it and simplify it enters into that.

62
00:05:01,430 --> 00:05:03,230
I want to like uh.

63
00:05:06,310 --> 00:05:09,380
It is the future.

64
00:05:10,120 --> 00:05:11,300
It is the future.

65
00:05:11,770 --> 00:05:14,690
Now, let me do it now.

66
00:05:14,720 --> 00:05:15,310
Guard.

67
00:05:18,050 --> 00:05:24,430
Guard and finally, which is hacking ahead, and as you can see, that we are able to change.

68
00:05:24,590 --> 00:05:25,270
All right.

69
00:05:25,550 --> 00:05:27,530
What was inside the file?

70
00:05:28,130 --> 00:05:29,080
Oh, OK.

71
00:05:29,390 --> 00:05:30,530
So it is now.

72
00:05:30,560 --> 00:05:31,830
It is the future.

73
00:05:31,850 --> 00:05:34,490
So this is how you can work with this.

74
00:05:34,820 --> 00:05:43,260
So what we have learned we are we have learned how to create file using get how to add content inside

75
00:05:43,260 --> 00:05:45,710
there to using cat hacking.

76
00:05:46,220 --> 00:05:47,330
OK, so OK.

77
00:05:47,570 --> 00:05:52,430
So with the help of this you can create file and you can add content inside this with the help of cat

78
00:05:52,430 --> 00:05:57,920
hacking, you can display, you can see or display the content present inside this particular file if

79
00:05:57,920 --> 00:06:04,730
you want supposed if you want to add more layers, you can use the redirect symbol and you can see with

80
00:06:04,730 --> 00:06:10,580
the help of this and suppose that you want to write it so you can use the same command.

81
00:06:10,760 --> 00:06:16,760
OK, hacking, redirect singlehood addict and hacking or cat single and hacking like this.

82
00:06:17,090 --> 00:06:23,300
OK, so one more one that is very useful to create the file, which is touch.

83
00:06:23,660 --> 00:06:31,430
So this one was originally developed so a user could simply touch a file to change some of its details,

84
00:06:31,430 --> 00:06:34,360
such as the date it was created or modified.

85
00:06:34,670 --> 00:06:40,910
However, if the file doesn't already exist, this command could use that file by default.

86
00:06:41,180 --> 00:06:42,410
So this is like.

87
00:06:43,630 --> 00:06:50,530
It is not meant for creating fight, but if the file is not present, it will create and evolve new

88
00:06:50,530 --> 00:06:51,200
file for you.

89
00:06:51,520 --> 00:06:58,910
So how you can create the file, you need to simply touch on new file.

90
00:06:59,230 --> 00:07:06,210
This is how you can do this now or let me do it like I know how to enter software.

91
00:07:06,370 --> 00:07:12,940
And as you can see, that file now do so after doing Ellers, as you can see that this is nothing wordlist.

92
00:07:13,330 --> 00:07:19,330
So you can see that we have successfully created the file which we have given there.

93
00:07:19,990 --> 00:07:21,520
Now we are having those files.

94
00:07:21,520 --> 00:07:26,520
We are able to uh, now let's see the content inside the file.

95
00:07:27,220 --> 00:07:30,110
We are having nothing inside this particular file.

96
00:07:30,550 --> 00:07:37,180
So this is how you can work with this and this is how you can create any particular file.

97
00:07:38,170 --> 00:07:46,130
So in the next lecture, we are going to see how to create a Badagry, which is very important to none.

98
00:07:46,600 --> 00:07:48,670
So this is all for this lecture, guys.

99
00:07:48,670 --> 00:07:50,080
I hope you guys enjoyed it.

100
00:07:50,320 --> 00:07:52,260
And thank you for watching this lecture.
